<?php

use yii\helpers\Html;
use yii\helpers\Url;
use yii\widgets\ActiveForm;
use common\models\car\CarInfoImage;

$this->params['breadcrumbs'][] = $this->title;
?>
<h1><?= Html::encode($title) ?></h1>

<?php $form = ActiveForm::begin(["id" => "id"]); ?>
        <?php echo $form->field($model, 'title')->textInput(); ?>

        <?php echo $form->field($model, 'image')->textInput(); ?>
        <span style="float:right">
            <a href="<?php echo Url::to(['params/image-upload']); ?>" class="btn btn-primary" target="view_window">图片上传</a>
        </span>
        <br>
        <?php echo $form->field($model, 'type')->dropDownList(CarInfoImage::$type) ?>
    <br>
    <input type="submit" value="提 交" name="submit_btn" class="btn">
<?php ActiveForm::end(); ?>
